﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Gola.VN.Scb.Web.Common.Models
{
    [PropertiesMustMatch("Password", "RePassword", ErrorMessage = Constants.Interface.PasswordMatch)]
    public class ChangePasswordModel
    {
        [Required(ErrorMessage = Constants.Interface.OldPasswordRequired)]
        [DisplayName(Constants.Interface.OldPassword)]
        public string OldPassword { get; set; }

        [Required(ErrorMessage = Constants.Interface.NewPasswordRequired)]
        [DisplayName(Constants.Interface.NewPassword)]
        public string Password { get; set; }

        [Required(ErrorMessage = Constants.Interface.ReNewPasswordRequired)]
        [DisplayName(Constants.Interface.ReNewPassword)]
        public string RePassword { get; set; }
    }
}